//
//  CategoryDataModel+ModelController.m
//  YZZX
//
//  Created by Easaa on 15/4/20.
//  Copyright (c) 2015年 Easaa. All rights reserved.
//

//typedef  enum{
//ArticleDefault = 1,         //文章类型默认模板
//ArticleDateSelectContent,   //文章类型DateSelectContent模板
//ZineDefault,                //杂志类型默认模板
//AggregationData,            //聚合类型数据模板
//AggregationInteractive,     //聚合类型互动模板
//TradeMatchingDefault,       //撮合类型默认模板
//BuyAndSellDefault,          //供求类型默认模板
//CompanyDefault,             //企业类型默认模板
//CompanyMap,                 //企业类型地图模板
//Parent,                     //此类型对应的是有三级栏目的模板
//AddressBookDefault,         //名片默认模板
//SocialDefault,              //social默认模板
//VoteDefault,                //vote默认模板
//WebDefault,                 //web默认模板
//InterviewDefault,           //访谈默认模板
//AggregationListDefault,     //聚合列表默认模板
//MallProductDefault,         //商城默认模板
//ClassifiedInfoDefault,      //分类默认模板
//other                       //没有此模板
//}SecondCateTemplate;
#import "CategoryDataModel+ModelController.h"

#import "ZineViewModelVC.h"
#import "ParentViewModelVC.h"
#import "ArticleViewModelVC.h"

@implementation CategoryDataModel (ModelController)

+(SuperBarVC *)TabbarViewControllerCategoryModel:(CategoryDataModel *)Categorymodel
{
        
    
    if([Categorymodel.cate_type isEqualToString:@"Article"])
    {
        ArticleViewModelVC * ArticleView = [[ArticleViewModelVC alloc]initWithCateGoryData:Categorymodel];
        return ArticleView;
        
    }else if ([Categorymodel.cate_type isEqualToString:@"Parent"])
    {
     
        
        ParentViewModelVC * ParentView = [[ParentViewModelVC alloc]initWithParentCateGoryData:Categorymodel];
        return ParentView;
     
    }else if ([Categorymodel.cate_type isEqualToString:@"Zine"])
    {
     
        ZineViewModelVC * ZineView = [[ZineViewModelVC alloc]initWithZineCateGoryData:Categorymodel];
        return ZineView;
    }
    
    
  return nil;

}




@end


